﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_danh_muc : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string strTieuDeKoDau = clsCommon.fncGetRoute(this.Page, "UserControl");
        string strTieuDeTin = clsCommon.fncGetRoute(this.Page, "param1");
        //
        int iCountSubItem = clsDanhMuc.fncGetNumberSubItem(strTieuDeKoDau);
        string strUserControlName = "danh-muc-lst";
        if (iCountSubItem <= 0) { strUserControlName = "danh-muc-chi-tiet"; }
        if (!string.IsNullOrEmpty(strTieuDeTin)) { strUserControlName = "tin-chi-tiet"; }
        clsCommon.fncLoadUserControl(plhContent, this.Page, "UserControl/", strUserControlName, "index");
    }
}